.http-history-flow-table-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.table-virtual-resize {
    height: 100%;

    .status-code {
        color: var(--Colors-Use-Success-Primary);
    }

    .filter-icon {
        svg {
            width: 16px;
            height: 16px;
        }
    }

    .body-length-text-red {
        color: var(--Colors-Use-Error-Primary);
    }

    .check-circle {
        display: flex;
        align-items: center;

        .check-circle-icon {
            color: var(--Colors-Use-Success-Primary);
        }
    }
}

/* history表格右键菜单颜色功能样式 */
.history-color-tag {
    display: flex;
    align-items: center;
    width: 100%;

    .tag-color-display {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-right: 8px;
    }
}

.inputSearchModule {
    // :global {
    //     .ant-input-affix-wrapper {
    //         height: 24px;
    //         width: calc(100% - 24px);
    //         .ant-input {
    //             height: 22px;
    //         }
    //     }
    //     .ant-input-group-addon {
    //         height: 24px;
    //         line-height: 24px;
    //         .ant-input-search-button {
    //             height: 24px;
    //             width: 24px;
    //         }
    //     }
    // }
}

.http-history-table-title {
    width: 100%;
    display: flex;
    flex-direction: column;

    :global {
        .ant-btn-sm {
            border-radius: 4px;
        }

        .ant-select-selector {
            border-radius: 4px !important;
        }

        .ant-input-group-addon {
            border-radius: 4px;
        }
    }

    .http-history-table-title-space-between {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .http-history-table-row {
        margin-bottom: 8px;
    }

    .http-history-table-flex {
        display: flex;
        align-items: center;
    }

    .http-history-table-total {
        display: flex;
        align-items: center;

        .http-history-table-total-item {
            display: flex;
            align-items: center;

            .http-history-table-total-item-text {
                color: var(--Colors-Use-Neutral-Disable);
                font-size: 12px;
                margin-right: 4px;
            }

            .http-history-table-total-item-number {
                color: var(--Colors-Use-Main-Primary);
                font-size: 12px;
            }
        }
    }

    .http-history-table-right {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        flex: 1;

        .http-history-table-right-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .http-history-table-right-label {
            white-space: nowrap;
        }

        .http-history-table-color-swatch {
            color: var(--Colors-Use-Neutral-Text-1-Title);

            .color-swatch-icon {
                svg {
                    color: var(--Colors-Use-Neutral-Text-1-Title);

                    &:hover {
                        color: var(--Colors-Use-Main-Primary);
                    }
                }

                &:hover {
                    color: var(--Colors-Use-Main-Primary);
                }
            }

            .color-swatch-icon-active {
                svg {
                    color: var(--Colors-Use-Main-Primary);
                }
            }
        }

        .http-history-table-badge {
            .refresh-icon {
                color: var(--Colors-Use-Neutral-Text-1-Title);
                cursor: pointer;

                &:hover {
                    color: var(--Colors-Use-Main-Primary);
                }
            }
        }
    }
}

.http-history-table-left-shield {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px 8px;
    background: var(--Colors-Use-Neutral-Bg-Hover);
    border: 1px solid var(--Colors-Use-Neutral-Border);
    border-radius: 4px;
    color: var(--Colors-Use-Neutral-Text-1-Title);
    font-weight: 400;
    font-size: 12px;
    height: 24px;
    cursor: pointer;
    // margin-right: 16px;

    .http-history-table-left-number {
        margin-left: 4px;
        margin-right: 8px;
        color: var(--Colors-Use-Main-Primary);
    }

    &:hover {
        background: var(--Colors-Use-Main-Bg);
        border: 1px solid var(--Colors-Use-Main-Hover);
    }

    .http-history-table-left-shield-icon {
        font-size: 12px;

        svg {
            width: 12px;
            height: 12px;
            color: var(--Colors-Use-Neutral-Text-1-Title);
        }
    }
}

.http-history-table-shield-popover {
    padding-top: 5px;

    :global {
        .ant-popover-inner-content {
            padding: 0;
            border: 1px solid var(--Colors-Use-Neutral-Border);
            box-shadow: 0px 8px 16px var(--Colors-Use-Basic-Shadow);
            border-radius: 4px;
        }
    }

    .title-header {
        position: relative;
        max-width: 345px;
        max-height: 60vh;
        overflow-y: auto;
        padding: 12px;
        padding-right: 50px;

        .shield-reset {
            position: absolute;
            top: 8px;
            right: 0px;
        }

        .title-selected-tag {
            display: flex;
            align-items: center;
            height: 20px;
            font-size: 12px;
            border: 1px solid var(--Colors-Use-Neutral-Border);
            background: var(--Colors-Use-Neutral-Bg);
            border-radius: 4px;
            width: fit-content;
            max-width: 100%;
            padding: 4px 6px;
            margin-bottom: 8px;

            &:last-child {
                margin-bottom: 0;
            }

            .tag-name-style {
                color: var(--Colors-Use-Neutral-Text-1-Title);
                white-space: nowrap;
                text-overflow: ellipsis;
                overflow: hidden;
                word-break: break-all;
                width: calc(100% - 20px);
            }

            .tag-del-style {
                cursor: pointer;
                margin-left: 8px;
                color: var(--Colors-Use-Neutral-Disable);

                &:hover {
                    color: var(--Colors-Use-Main-Hover);
                }

                &:active {
                    color: var(--Colors-Use-Main-Pressed);
                }
            }
        }
    }

    @media screen and (max-height: 600px) {
        .title-header {
            max-height: 180px;
        }
    }
}

.http-history-table-color-popover {
    width: 140px;
    padding-top: 5px;

    :global {
        .ant-popover-inner-content {
            padding: 0;
            border: 1px solid var(--Colors-Use-Neutral-Border);
            box-shadow: 0px 8px 16px var(--Colors-Use-Basic-Shadow);
            border-radius: 4px;
        }
    }
}

.select-search {
    position: relative;
    overflow: hidden;

    .select-container {
        max-height: 200px;
        overflow-y: auto;
        margin-bottom: 4px;
        overflow-anchor: none;
    }

    .select-wrapper {
        padding: 0 4px;
        margin-bottom: 4px;
    }

    .select-item {
        padding: 4px 8px 4px 6px;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 6px 12px;
        cursor: pointer;
        border-radius: 4px;
        justify-content: space-between;
        color: var(--Colors-Use-Neutral-Text-1-Title);

        &:hover {
            background: var(--Colors-Use-Neutral-Bg-Hover);
        }

        &:active {
            background: var(--Colors-Use-Neutral-Bg-Hover);
            color: var(--Colors-Use-Main-Primary);
        }
    }

    .no-data {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 6px 12px;
    }

    .select-item-active {
        // background: var(--Colors-Use-Neutral-Bg-Hover);
        color: var(--Colors-Use-Main-Primary);
    }

    .select-search-multiple {
        padding: 0 0 24px 0;
        width: 138px;

        :global {
            ::-webkit-scrollbar {
                height: 0;
                width: 0;
                color: transparent;
            }
        }

        .select-heard {
            position: absolute;
            top: 0;
            padding: 0 4px;

            :global {
                .ant-input {
                    font-size: 14px;
                    height: 26px;
                }

                .ant-select-selection-overflow {
                    flex-wrap: nowrap;
                    overflow-x: overlay;
                }

                .search-icon {
                    color: var(--Colors-Use-Neutral-Text-3-Secondary);

                    svg {
                        height: 12px;
                        width: 12px;

                        path {
                            stroke-width: 1.5;
                        }
                    }
                }
            }
        }
    }

    .select-search-multiple-filterSearch {
        padding: 24px 0;
    }
}

@media screen and (max-height: 600px) {
    .select-search {
        max-height: 180px;
    }
}

.http-history-table-drop-down-popover {
    padding-top: 5px;

    :global {
        .ant-popover-inner-content {
            padding: 4px;
            border: 1px solid var(--Colors-Use-Neutral-Border);
            box-shadow: 0px 8px 16px var(--Colors-Use-Basic-Shadow);
            border-radius: 4px;
        }
    }
}

.table-body-length-filter {
    :global {
        .ant-select {
            margin: 0px !important;
        }

        .ant-input-group.ant-input-group-compact>.ant-select:last-child>.ant-select-selector {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
            border-top-right-radius: 4px;
            border-bottom-right-radius: 4px;
            align-items: center;
            border-left-width: 0;

            &:hover {
                border-left-width: 1px;
            }
        }

        .ant-input-group.ant-input-group-compact>*:first-child {
            border-top-left-radius: 4px;
            border-bottom-left-radius: 4px;
        }

        .ant-input-number:hover {
            z-index: 1;
            border-left-width: 1px;
        }

        .ant-input-number-focused {
            border-left-width: 1px !important;
            margin-left: 1px;
        }

        .ant-input-group.ant-input-group-compact>*:not(:last-child) {
            margin-right: 0;
        }
    }

    .input-group {
        padding: 0 8px 8px;
        display: inline-flex;

        .input-left {
            min-width: 100px;
            max-width: 100px;
            text-align: center;
            height: 24px;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;

            &:hover,
            &:focus,
            &:active {
                border-top-right-radius: 4px;
                border-bottom-right-radius: 4px;
            }
        }

        .input-split {
            min-width: 30px;
            max-width: 30px;
            text-align: center;
            pointer-events: none;
            background-color: var(--Colors-Use-Neutral-Bg-Hover);
            color: var(--Colors-Use-Neutral-Disable);
            height: 24px;
            border-top: 1px solid var(--Colors-Use-Neutral-Border);
            border-bottom: 1px solid var(--Colors-Use-Neutral-Border);
        }

        .input-right {
            min-width: 100px;
            max-width: 100px;
            text-align: center;
            height: 24px;
            border-radius: 0;

            &:hover,
            &:focus,
            &:active {
                border-radius: 4px;
            }
        }
    }

    .input-footer {
        position: relative;
        // border-bottom: 1px solid var(--Colors-Use-Neutral-Border);
    }
}

.rangeInputNumberTableWrapper {
    padding-top: 0px;
    color: var(--Colors-Use-Neutral-Text-1-Title);

    .body-length-filter {
        display: flex;
        align-items: center;
        gap: 4px;
        cursor: pointer;
        padding: 4px;
        border-radius: 4px;

        .outlineFilterIcon {
            svg {
                width: 16px;
                height: 16px;
                color: var(--Colors-Use-Neutral-Text-4-Help-text);
            }
        }

        &:hover {
            background-color: var(--Colors-Use-Neutral-Bg-Hover);
        }
    }
    .body-length-filter-active {
        color: var((--Colors-Use-Main-Primary));
        .outlineFilterIcon {
            svg {
                color: var((--Colors-Use-Main-Primary));
            }
        }
    }

    .body-length-checkbox {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 4px;
    }
}


.http-history-table-color-item-list {
    padding: 8px 4px;
}

.http-history-table-color-item {
    height: 28px;
    line-height: 28px;
    color: var(--Colors-Use-Neutral-Text-1-Title);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 4px;
    padding: 4px 8px 4px 6px;

    &:hover {
        background-color: var(--Colors-Use-Neutral-Bg);
    }

    .http-history-table-color-item-render {
        width: 100%;
    }
}

.http-history-table-color-item-active {
    color: var(--Colors-Use-Main-Primary);
}

.color-select-footer {
    position: relative !important;
}

.duration-ms {
    color: var(--Colors-Use-Success-Primary);
}

.action-btn-group {
    height: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3px;

    .divider-style {
        height: 100%;
        border-left: 1px solid var(--Colors-Use-Neutral-Border);
    }

    .icon-style {
        color: var(--Colors-Use-Neutral-Text-3-Secondary);
    }

    .icon-hover:hover {
        color: var(--Colors-Use-Main-Primary);
    }
}

.hover-grey-row {
    .icon-hover {
        color: var(--Colors-Use-Neutral-Text-3-Secondary);
    }

    .icon-hover:hover {
        color: var(--Colors-Use-Basic-White);
    }
}

.hover-red-row {
    .icon-hover {
        color: var(--yakit-colors-Error-100);
    }

    .icon-hover:hover {
        color: var(--Colors-Use-Basic-White);
    }
}


.check-icon {
    color: var(--Colors-Use-Main-Primary);

    svg {
        height: 16px;
        width: 16px;
    }
}

.unit-select {
    width: 60px;

    :global {
        .ant-select-arrow {
            z-index: 1;
        }

        .ant-select-selector {
            border-left-width: 0 !important;
            border-top-left-radius: 0 !important;
            border-bottom-left-radius: 0 !important;

            &:hover,
            &:focus,
            &:active {
                border-left-width: 1px !important;
                border-top-left-radius: 4px !important;
                border-bottom-left-radius: 4px !important;
            }
        }

        .ant-select-focused {
            .ant-select-selector {
                z-index: 1;
                border-left-width: 1px !important;
                border-top-left-radius: 4px !important;
                border-bottom-left-radius: 4px !important;
            }
        }

        .ant-select-open {
            .ant-select-selector {
                z-index: 1;
                border-left-width: 1px !important;
                border-top-left-radius: 4px !important;
                border-bottom-left-radius: 4px !important;
            }
        }
    }
}

.editor-context-menu-keybind-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    .content-style {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .keybind-style {
        height: 100%;
        display: flex;
        align-items: center;
        color: var(--Colors-Use-Neutral-Disable);
        font-size: 12px;
    }
}

.http-history-table-right-search {
    width: 280px;
    @extend .inputSearchModule;
}

.http-history-search-drop-down-popover {
    @extend .inputSearchModule;
}

.http-history-search-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;

    .http-history-search-question-icon {
        margin-left: 2px;

        svg {
            width: 16px;
            height: 16px;
            color: var(--Colors-Use-Neutral-Text-4-Help-text);
        }
    }
}

.history-advanced-set-wrapper {
    .advanced-configuration-drawer-title {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .advanced-configuration-drawer-title-text {
            font-weight: 600;
            font-size: 14px;
            line-height: 20px;
            color: var(--Colors-Use-Neutral-Text-1-Title);
        }

        .advanced-configuration-drawer-title-btns {
            display: flex;
            gap: 8px;
        }
    }

    .history-advanced-set-cont {
        .history-advanced-set-item {
            &-title {
                display: flex;
                justify-content: space-between;
                font-weight: 600;
                font-size: 14px;
                color: var(--Colors-Use-Neutral-Text-1-Title);
            }

            &-desc {
                font-size: 12px;
                margin-bottom: 5px;
            }

            &-cont {
                margin-bottom: 15px;

                .backgroundRefresh {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    margin-left: 55px;

                    .title-style {
                        font-size: 14px;
                        line-height: 22px;
                        color: var(--Colors-Use-Neutral-Text-1-Title);
                    }

                    .hint-style {
                        cursor: pointer;

                        svg {
                            width: 16px;
                            height: 16px;
                            color: var(--Colors-Use-Neutral-Text-4-Help-text);
                        }
                    }
                }

                .columnSet {
                    .column-item {
                        display: flex;
                        gap: 8px;
                        align-items: center;
                        padding: 10px 12px;
                        margin-bottom: 5px;
                        border: 1px solid var(--Colors-Use-Neutral-Border);
                        border-radius: 4px;
                        cursor: grab;

                        .column-title {
                            flex: 1;
                        }

                        svg {
                            width: 16px;
                            height: 16px;
                            color: var(--Colors-Use-Neutral-Text-1-Title);
                        }

                        &:hover {
                            svg {
                                color: var(--Colors-Use-Main-Primary);
                            }

                            border: 1px solid var(--Colors-Use-Main-Primary);
                        }

                        &:active {
                            border: 1px solid var(--Colors-Use-Main-Primary);
                        }

                        .ban-icon {
                            cursor: pointer;
                        }
                    }

                    .column-item-not-allowed {
                        background-color: var(--Colors-Use-Neutral-Bg-Hover);
                        color: var(--Colors-Use-Neutral-Disable);
                    }
                }
            }
        }
    }
}